package com.retailshop.shopfinace.mapper;

import com.retailshop.shopfinace.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface FinaceMapper {

    int deleteByPrimaryKey(@Param("id")Integer id,@Param("classify")Integer classify);

    //根据类型获取积分信息
    List<Finace> selectFinaceList(Finace record);
    List<Finace> selectWeChatList(@Param("userNoId")Integer userNoId,@Param("remark")String remark);
    List<Finace> selectWeChatListType(@Param("classify")Integer classify,@Param("userNoId")Integer userNoId,@Param("remark")String remark);
    List<Finace> selectBalanceYuE(@Param("classify")Integer classify,@Param("remark")String remark);
    List<Finace> selectEarningsListDay(@Param("userNoId")Integer userNoId,@Param("classify")Integer classify);

    List<Finace> selectEarningsListWeeks(@Param("userNoId")Integer userNoId,@Param("classify")Integer classify);

    List<Finace> selectEarningsListMonth(@Param("userNoId")Integer userNoId,@Param("classify")Integer classify);

    List<Finace> selectEarningsListTotal(@Param("userNoId")Integer userNoId,@Param("classify")Integer classify);

    int insertFinace(Finace record);

    int DelDistinct();

    int insertTransfer(Finace record);

    int insertFinaceOrder(FinaceOrder record);

    FinaceBalance SelectBalance(FinaceBalance record);

    FinaceBalanceAll SelectBalanceAll(FinaceBalanceAll record);

    FinaceBalanceAllX SelectBalanceAllX(FinaceBalanceAllX record);

    FinaceBalanceAllJ SelectBalanceAllJ(FinaceBalanceAllJ record);

    //根据类型获和编号ID取积分信息
    List<Finace> selectFinaceUserList(Finace record);

    FinaceEarnings SelectEarnings(@Param("userNoId")Integer userNoId,@Param("classify")Integer classify);

    int updateByPrimaryKeySelective(Finace record);

    int updateByPrimaryKey(Finace record);

    Finace SelectDisId();

}